import request from '@/config/axios'

// 创建试题
export const questionnaire = async (data) => {
  return await request.post({ url: `/system/questionnaire/create`, data })
}

// 获得试题分页
export const questionnaireList = async (data) => {
  return await request.get({ url: `/system/questionnaire/page`, data })
}

// 删除试题
export const questionnaireDele = async (id) => {
  return await request.delete({ url: `/system/questionnaire/delete?id=` +id })
}

// 获得试题列表
export const questionnaireli = async (id) => {
  return await request.get({ url: `/system/questionnaire/list?ids=`+id })
}